A Dynamic Batch Algorithm for Maintaining a Topological Order

نویسنده

  • David J. Pearce
چکیده

The dynamic topological order problem is that of efficiently updating a topological order after an edge insertion. This can be solved using a standard topological sort algorithm in O(v+e+b) time, for a batch of b edge insertions. However, this always traverses the entire graph when processing a batch of insertions, even if only a few edges are added. Dynamic topological order algorithms traverse only those regions of the graph where the ordering is actually affected by the new edges — usually much less than the whole graph. While these outperform the standard topological sort on relatively small insertion batches, they have a sub-optimal worst-case bound of O(b(v+ e)). We present, for the first time, a dynamic algorithm with an optimal O(v+e+ b) bound on its runtime, which only recomputes those region(s) of the order affected by the new edges. Thus, unlike all other algorithms for this problem, it is efficient on both small and large batches. To support this claim, we empirically evaluate it against the standard topological sort algorithm and a related dynamic topological order algorithm over a large number of random DAGs. The results confirm that our new algorithm is always the best choice.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A batch algorithm for maintaining a topological order

The dynamic topological order problem is that of efficiently updating a topological order after some edge(s) are inserted into a graph. Much prior work exists on the unit-change version of this problem, where the order is updated after every single insertion. No previous (non-trivial) algorithms are known for the batch version of the problem, where the order is updated after every batch of inse...

متن کامل

Role of batch size in scheduling optimization of flexible manufacturing system using genetic algorithm

Flexible manufacturing system (FMS) readily addresses the dynamic needs of the customers in terms of variety and quality. At present, there is a need to produce a wide range of quality products in limited time span. On-time delivery of customers’ orders is critical in make-to-order (MTO) manufacturing systems. The completion time of the orders depends on several factors including arrival rate, ...

متن کامل

An improved memetic algorithm to minimize earliness–tardiness on a single batch processing machine

In this research, a single batch processing machine scheduling problem with minimization of total earliness and tardiness as the objective function is investigated.We first formulate the problem as a mixed integer linear programming model. Since the research problem is shown to be NP-hard, an improved memetic algorithmis proposed to efficiently solve the problem. To further enhance the memetic ...

متن کامل

Coordinating Order Acceptance and Batch Delivery for an Integrated Supply Chain Scheduling

This paper develops Order Acceptance for an Integrated Production-Distribution Problem in which Batch Delivery is implemented. The aim of this problem is to coordinate: (1) rejecting some of the orders (2) production scheduling of the accepted orders and (3) batch delivery to maximize Total Net Profit. A Mixed Integer Programming is proposed for the problem. In addition, a hybrid meta-heuristic...

متن کامل

The topological ordering of covering nodes

The topological ordering algorithm sorts nodes of a directed graph such that the order of the tail of each arc is lower than the order of its head. In this paper, we introduce the notion of covering between nodes of a directed graph. Then, we apply the topological orderingalgorithm on graphs containing the covering nodes. We show that there exists a cut set withforward arcs in these...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2006